package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HuiyuanMapper;
import com.ruoyi.system.domain.Huiyuan;
import com.ruoyi.system.service.IHuiyuanService;

/**
 * 会员管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-05-31
 */
@Service
public class HuiyuanServiceImpl implements IHuiyuanService 
{
    @Autowired
    private HuiyuanMapper huiyuanMapper;

    /**
     * 查询会员管理
     * 
     * @param huiyuanId 会员管理主键
     * @return 会员管理
     */
    @Override
    public Huiyuan selectHuiyuanByHuiyuanId(Long huiyuanId)
    {
        return huiyuanMapper.selectHuiyuanByHuiyuanId(huiyuanId);
    }

    /**
     * 查询会员管理列表
     * 
     * @param huiyuan 会员管理
     * @return 会员管理
     */
    @Override
    public List<Huiyuan> selectHuiyuanList(Huiyuan huiyuan)
    {
        return huiyuanMapper.selectHuiyuanList(huiyuan);
    }

    /**
     * 新增会员管理
     * 
     * @param huiyuan 会员管理
     * @return 结果
     */
    @Override
    public int insertHuiyuan(Huiyuan huiyuan)
    {
        return huiyuanMapper.insertHuiyuan(huiyuan);
    }

    /**
     * 修改会员管理
     * 
     * @param huiyuan 会员管理
     * @return 结果
     */
    @Override
    public int updateHuiyuan(Huiyuan huiyuan)
    {
        return huiyuanMapper.updateHuiyuan(huiyuan);
    }

    /**
     * 批量删除会员管理
     * 
     * @param huiyuanIds 需要删除的会员管理主键
     * @return 结果
     */
    @Override
    public int deleteHuiyuanByHuiyuanIds(Long[] huiyuanIds)
    {
        return huiyuanMapper.deleteHuiyuanByHuiyuanIds(huiyuanIds);
    }

    /**
     * 删除会员管理信息
     * 
     * @param huiyuanId 会员管理主键
     * @return 结果
     */
    @Override
    public int deleteHuiyuanByHuiyuanId(Long huiyuanId)
    {
        return huiyuanMapper.deleteHuiyuanByHuiyuanId(huiyuanId);
    }
}
